﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace MyCloudService
{
    public partial class MCS_MAIN : ServiceBase
    {
        public MCS_MAIN()
        {
            InitializeComponent();
            initMCS();
        }

        private void initMCS()
        {
            base.AutoLog = true;
            base.CanShutdown = true;
            base.CanStop = false;
            base.CanPauseAndContinue = false;
            base.ServiceName = "MCS_MAIN";  //这个名字很重要，设置不一致会产生 1083 错误哦！
        }

        protected override void OnStart(string[] args)
        {
        }

        protected override void OnStop()
        {
        }
    }
}
